/*********************************************************************************
 *      Copyright:  (C) 2022 iot<iot@email.com>
 *                  All rights reserved.
 *
 *       Filename:  pipe.c
 *    Description:  This file 
 *                 
 *        Version:  1.0.0(20/03/22)
 *         Author:  iot <iot@email.com>
 *      ChangeLog:  1, Release initial version on "20/03/22 15:21:16"
 *                 
 ********************************************************************************/

#include<stdio.h>

#include<stdlib.h>
#include<errno.h>
#include<string.h>
#include<sys/types.h>
#include<sys/wait.h>


#define MSG_STR "hello,child process"

int main(int argc,char*argv[] )
{
int         pipe_fd[2];
int         rv;
int         pid;
int         wstatus;
char        buf[1024];
if(pipe(pipe_fd)<0)
{

	printf("creat pipe failure:%s\n",strerror(errno));
	return  -1;
}

}
